package com.xb.controller;

import com.xb.service.IRoleMenuService;
import com.xb.util.Result;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * Controller
 * /api/roleMenu
 */
@RestController
@RequestMapping("/api/roleMenu")
public class RoleMenuController {
    @Autowired
    private IRoleMenuService roleMenuService;
    @GetMapping("/getRoleMenu")
    public Result getRoleMenu(Integer roleId) {
        return roleMenuService.getRoleMenu(roleId);
    }

}
